import request from "@/router/axios";
import { baseUrl } from "@/config/env";

//添加星级志愿者
export function addVolunteerStar(data) {
  return request({
    url: baseUrl + "/pc/volunteer-star",
    method: "post",
    data
  });
}

//查询星级志愿者
export function getVolunteerStar(data) {
  return request({
    url: baseUrl + "/pc/volunteer-star",
    method: "get",
    params: data
  });
}

//删除星级志愿者
export function deleteVolunteerStar(data) {
  return request({
    url: baseUrl + "/pc/volunteer-star",
    method: "delete",
    data
  });
}

//更新星级志愿者
export function updateVolunteerStar(data) {
  return request({
    url: baseUrl + "/pc/volunteer-star",
    method: "put",
    data
  });
}

//导入星级志愿者
export function importVolunteerStar(data) {
  return request({
    url: baseUrl + "/pc/volunteer-star",
    method: "post",
    data
  });
}
